<template>
  <div>
    <el-card class="user-container">
      <template #header>
        <div class="header">
          <span>{{ $t("msg.profile.introduce") }}</span>
        </div>
      </template>
      <div class="user-profile">
        <div class="box-center">
          <pan-thumb
            :image="$store.state.user.userInfo.avatar"
            :height="'100px'"
            :width="'100px'"
            :hoverable="false"
          >
            <div>Hello</div>
            {{ $store.state.user.userInfo.title }}
          </pan-thumb>
        </div>
        <div class="box-center">
          <div class="user-name text-center">
            {{ $store.state.user.userInfo.username }}
          </div>
          <div class="user-role text-center text-muted">
            {{ $store.state.user.userInfo.title }}
          </div>
        </div>
      </div>

      <!-- 简介 -->
      <div class="project-bio">
        <div class="project-bio-section">
          <div class="project-bio-section-header">
            <i
              style="margin-right: 10px"
              class="iconfont icon-xiangmujieshao"
            ></i>
            <span>{{ $t("msg.profile.projectIntroduction") }}</span>
          </div>
          <div class="project-bio-section-body">
            <div class="text-muted">
              {{ $t("msg.profile.muted") }}
            </div>
          </div>
        </div>
      </div>

      <!-- 功能 -->
      <div class="project-bio">
        <div class="project-bio-section">
          <div class="project-bio-section-header">
            <i
              style="margin-right: 10px"
              class="iconfont icon-xiangmujieshao"
            ></i>
            <span>{{ $t("msg.profile.projectIntroduction") }}</span>
          </div>
          <div class="project-bio-section-body">
            <div class="text-muted">
              {{ $t("msg.profile.muted") }}
            </div>
          </div>
        </div>
      </div>
    </el-card>
  </div>
</template>

<script>
import PanThumb from "./PanThumb/index.vue";
export default {
  props: {
    features: {
      type: Array,
      required: true,
    },
  },
  components: {
    PanThumb,
  },
  data() {
    return {};
  },
  mounted() {},
  methods: {},
};
</script>

<style scoped lang='scss'>
.user-container {
  .text-muted {
    font-size: 14px;
    color: #777;
  }

  .user-profile {
    text-align: center;
    .user-name {
      font-weight: bold;
    }

    .box-center {
      padding-top: 10px;
    }

    .user-role {
      padding-top: 10px;
      font-weight: 400;
    }
  }

  .project-bio {
    margin-top: 20px;
    color: #606266;
    span {
      padding-left: 4px;
    }

    .project-bio-section {
      margin-bottom: 36px;
      .project-bio-section-header {
        border-bottom: 1px solid #dfe6ec;
        padding-bottom: 10px;
        margin-bottom: 10px;
        font-weight: bold;
      }
      .project-bio-section-body {
        .progress-item {
          margin-top: 10px;
          div {
            font-size: 14px;
            margin-bottom: 2px;
          }
        }
      }
    }
  }
}
</style>
